#include "newoperationdialog.h"
#include "ui_newoperationdialog.h"

NewOperationDialog::NewOperationDialog(QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::NewOperationDialog)
{
    ui->setupUi(this);

    ui->comboBoxOperation->addItem("DelayOperation");
    ui->comboBoxOperation->addItem("MoveJointOperation");
    ui->comboBoxOperation->addItem("RecognizeOperation");
    ui->comboBoxOperation->addItem("SnapOperation");
    ui->comboBoxOperation->addItem("WordopControlLEDOperation");

    connect(ui->comboBoxOperation, &QComboBox::currentIndexChanged, this, &NewOperationDialog::onComboBoxIndexChanged);

    m_strCurrentOperation = ui->comboBoxOperation->currentText();
}

NewOperationDialog::~NewOperationDialog()
{
    delete ui;
}

void NewOperationDialog::onComboBoxIndexChanged(int index){
    m_strCurrentOperation = ui->comboBoxOperation->currentText();
}
